<!DOCTYPE html>
<html>

<head>
    <title>Example</title>
    <!-- lifehacker.com-------js启蒙读物
        使用说明参见:http://lifehacker.com/5744113/learn-to-code-the-full-beginners-guide
        《JavaScript权威指南(第六版)》, 机械工业出版社
        《JavaScript设计模式》, 人民邮电出版社
    -->
</head>

<body>
    <script type="text/javascript">
        try {
            var myArray;
            for (let i = 0; i < myArray.length; i++) {
                document.writeln("Index " + i + ": " + myArray[i]);
            }
        } catch (error) {
            document.writeln("Error: " + error);
        }finally{
            document.writeln("Statemens here are always executed");
        }

    </script>
</body>

</html>